package com.gitee.feizns.quickstart.web.ex;

import org.springframework.http.HttpStatus;

/**
 * 不具备权限HTTP的异常（401）
 * @see HttpException
 * @author feizns
 * @since 2019/7/4
 */
public class UnauthorizedException extends HttpException {

    /**
     * @see HttpException
     */
    public UnauthorizedException() {
        super(HttpStatus.UNAUTHORIZED);
    }

    /**
     * @see HttpException
     */
    public UnauthorizedException(String message) {
        super(HttpStatus.UNAUTHORIZED, message);
    }

    /**
     * @see HttpException
     */
    public UnauthorizedException(ErrorCode errorCode) {
        super(HttpStatus.UNAUTHORIZED, errorCode);
    }

}
